{% extends "base.html" %}

{% load i18n %}

{% block title %}{% trans "Home"%}{% endblock %}

{% block content %}
{% if user.is_authenticated %}
    <br /><br /><br />
    <p>{% trans "Welcome"%} 
    {% if user.first_name and user.last_name %}{{ user.first_name|default_if_none:"" }} {{ user.last_name|default_if_none:"" }}{% else %}{{ user.username }}{% endif %}.</p>
    {% trans "You can add a new dissertation"%} <a href="/dissertations/add/">{% trans "here"%}</a><br />
    {% trans "Or list dissertations"%} <a href="/dissertations/list/">{% trans "here"%}</a><br />
    <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
    <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
{% else %}
    <br /><br /><br />
    <p>{% trans "Welcome Guest"%}<br />
    {% trans "You can add a new dissertation"%} <a href="/dissertations/add/">{% trans "here"%}</a><br />
    <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
    <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
{% endif %}
{% endblock %}
